Skip to content

Introduce shared NILData format and standard-library API - #15

Merged
bytetroll merged 3 commits into
masterfrom
codex/nildata
Oct 29, 2026
Merged

bytetroll merged 3 commits into
masterfrom
codex/nildata

Conversation

@bytetroll

Copy link
Copy Markdown
Contributor

The old NyData compiler converter and standard library disagreed about arrays and scalar types, and could accept incomplete input. Replace both with versioned NILData: a Matrix-style data grammar backed by one validated value model and one shared engine across the CLI, interpreter, JIT, and native runtime.

  • Add nil.std.nildata with checked parsing, JSON interchange, typed scalar access, and functional object/array operations. NILData has one array kind, including empty, heterogeneous, and nested arrays; numeric-key objects stay objects and number tokens retain their exact spelling.
  • Replace the old CLI conversion path and provide explicit importers for both historical NyData dialects. Old import spellings resolve to the new module, but the old API signatures and document syntax require migration.
  • Fix Ny string parsing stripping intentional quotes, intrinsic return metadata for the new bridge, and conversion commands blocking on special files.
  • Add NILData highlighting, folding, comments, and source-workflow isolation in VS Code. Patch the packaging tool's vulnerable MSAL dependency with a scoped override.
  • Document the grammar, migration, API, and remaining limitations. This initial document API is bounded to 1 MiB and reparses/copies values; streaming and constant-time access remain future work. The language's typed array<T> ABI is unchanged.

Validation:

  • 515 CTests passed with no skips, including the shared engine, CLI, runtime bridge, Ny and Matrix routes, and native pipelines.
  • 1,184 installed-consumer executions passed for source and binary standard libraries; sealed SDK validation passed.
  • 113 extension unit checks, VSIX packaging, and a clean dependency audit passed.
  • 84 real VS Code host checks passed against an independently copied SDK in a path containing spaces, including NILData isolation, language services, project tasks, debugger, and memory profiling.
  • The qualified SDK is activated in the main project and the verified VSIX is installed locally; the previous SDK generation is preserved.

SDK/runtime evidence is for 9e33415. The final commit only corrects editor-test controls (nested Matrix symbols and VS Code built-in word completions); the full host suite passes with those corrections. GitHub source-validation checks also run on the PR.

@bytetroll
bytetroll merged commit 5116cf1 into master Oct 29, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant